.class Lcom/waiqin365/lightapp/kehu/share/a/k;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/share/a/j;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/share/a/j;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/share/a/k;->a:Lcom/waiqin365/lightapp/kehu/share/a/j;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/share/a/k;->a:Lcom/waiqin365/lightapp/kehu/share/a/j;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/share/a/j;->a(Lcom/waiqin365/lightapp/kehu/share/a/j;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/share/a/k;->a:Lcom/waiqin365/lightapp/kehu/share/a/j;

    check-cast p1, Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    invoke-static {v1, v0, v3}, Lcom/waiqin365/lightapp/kehu/share/a/j;->a(Lcom/waiqin365/lightapp/kehu/share/a/j;Lcom/waiqin365/lightapp/kehu/share/a/a;Z)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/a/k;->a:Lcom/waiqin365/lightapp/kehu/share/a/j;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/share/a/j;->b(Lcom/waiqin365/lightapp/kehu/share/a/j;)Lcom/waiqin365/lightapp/kehu/share/a/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/share/a/j;->notifyDataSetChanged()V

    sget-object v0, Lcom/waiqin365/lightapp/kehu/share/ShareSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/j;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/share/a/j;->a()Ljava/util/List;

    move-result-object v3

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    move v1, v2

    :goto_1
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v0, :cond_0

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-interface {v4, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_1
    check-cast p1, Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/a/a;->a(Z)V

    goto :goto_0

    :cond_2
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_3

    sget-object v0, Lcom/waiqin365/lightapp/kehu/share/ShareSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/kehu/share/ShareSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/share/a/k;->a:Lcom/waiqin365/lightapp/kehu/share/a/j;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/share/a/j;->c(Lcom/waiqin365/lightapp/kehu/share/a/j;)Landroid/content/Context;

    move-result-object v2

    const v3, 0x7f0805d3

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    return-void

    :cond_3
    sget-object v0, Lcom/waiqin365/lightapp/kehu/share/ShareSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2
.end method
